Advertisement
ExaGridDba

Ocmrf.java

Oct 16th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1. package oracle.sysman.ccr.collector.install;
  2.  
  3. /*
  4.  * Brian Fitzgerald
  5.  * brian@exagriddba.com
  6.  * 10/16/2013
  7.  */
  8. import java.io.FileInputStream;
  9. import java.io.ObjectInputStream;
  10.  
  11. public class Ocmrf {
  12.  
  13.     public static void main(String args[]) throws Exception {
  14.         String ocmrf = args[0];
  15.         FileInputStream fin = new FileInputStream(ocmrf);
  16.         ObjectInputStream ois = new ObjectInputStream(fin);
  17.         ResponseFile rf = (ResponseFile) ois.readObject();
  18.         ois.close();
  19.  
  20.         System.out.println(rf.getLicenseInstance().verboseDisplay());
  21.         System.out.println(rf.getRegistrationPrincipal().verboseDisplay());
  22.         System.out.println(rf.getNetworkConfig().verboseDisplay());
  23.     }
  24. }
  25.  
  26. ex:
  27. [License agreement: accepted]
  28. [Response file registration via: My Oracle Support username, My Oracle Support registration username: bfitzgerald@xyz.org]
  29. [Connected configuration state: connected, Proxy configuration: (none specified)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement