Application 'Remote SAM' { Description { "Remote System Administration Manager", "Telnet, Local Tivoli desktop, and Remote SMIT" } Version 'V7R1'; Copyright { "Licensed Program Product:", " IBM Tivoli NetView", "(C) COPYRIGHT International Business Machines Corp. 1992,1994", "(C) COPYRIGHT Hewlett-Packard Co. 1992", " All Rights Reserved", "US Government Users Restricted Rights - Use, duplication,", "or disclosure restricted by GSA ADP Schedule Contract with", "IBM Corp. and its licensors.", "" } /* * Use -Shared so that only one instance of the process is executed. * All of the xnmappmon actions can be run concurrently by one process. */ MenuBar "Administer" { <89> "Remote System Management" _R f.action 'rsamHP'; <89> "Remote System Management" _R f.action 'rsamIBM'; <89> "Remote System Management" _R f.action 'rsamIBM31'; <70> "ssh (xterm)..." _x f.action 'ssh_xterm'; <69> "Telnet (xterm)..." _x f.action 'telnet_xterm'; } /******* Popups ***/ Objectmenu { <100> "Edit" _E f.menu P_Edit; <100> "View" _V f.menu P_View; <100> "Options" _p f.menu P_Options; <100> "Monitor" _M f.menu P_Monitor; <100> "Test" _T f.menu P_Test; <100> "Tools" _o f.menu P_Tools; <100> "Administer" _A f.menu P_Administer; } Menu 'P_Administer' { <89> "Remote System Management" _R f.action 'rsamHP'; <89> "Remote System Management" _R f.action 'rsamIBM'; <89> "Remote System Management" _R f.action 'rsamIBM31'; <70> "ssh (xterm)..." _x f.action 'ssh_xterm'; <69> "Telnet (xterm)..." _x f.action 'telnet_xterm'; } /*******/ /* action to invoke telnet aixterm */ Action 'telnet_aixterm' { MinSelected 1; MaxSelected 1; SelectionRule ( isNode ) ; NameField 'IP Hostname', 'IP Address', 'Selection Name'; Command '${term:-/usr/bin/aixterm} -T \"Telnet (aixterm) to ${OVwSelection1}\" -name \"XNmterm\" -xrm \"XNmterm*iconName: ${OVwSelection1}\" -e /usr/bin/telnet ${OVwSelection1} >/dev/null 2>&1'; } /* action to invoke telnet xterm */ Action 'telnet_xterm' { MinSelected 1; MaxSelected 1; SelectionRule ( isNode ) ; NameField 'IP Hostname', 'IP Address', 'Selection Name'; /* IX87173 */ /* Command '${xterm:-/usr/bin/X11/xterm} -T \"Telnet (xterm) to ${OVwSelection1}\" -name \"XNmterm\" -xrm \"XNmterm*iconName: ${OVwSelection1}\" -e /usr/bin/telnet ${OVwSelection1} >/dev/null 2>&1'; */ Command '${xterm:-/usr/OV/bin/ovwRunXterm /usr/bin/X11/xterm} -T \"Telnet (xterm) to ${OVwSelection1}\" -name \"XNmterm\" -xrm \"XNmterm*iconName: ${OVwSelection1}\" -e \"/usr/bin/telnet ${OVwSelection1}\" >/dev/null 2>&1'; } /* action to invoke ssh xterm */ Action 'ssh_xterm' { MinSelected 1; MaxSelected 1; SelectionRule ( isNode ) ; NameField 'IP Hostname', 'IP Address', 'Selection Name'; Command '${xterm:-/usr/OV/bin/ovwRunXterm /usr/bin/X11/xterm} -T \"ssh (xterm) to ${OVwSelection1}\" -name \"XNmterm\" -xrm \"XNmterm*iconName: ${OVwSelection1}\" -e \"/usr/OV/conf/skills/ssh.sh ${OVwSelection1}\" >/dev/null 2>&1'; } /* SNMP agent is HPUX, invoke SAM */ /* For older HP systems the sam executable is located in /usr/bin */ /* If you are unable to start sam change the path in the Command */ /* field below to the /usr/bin location */ Action 'rsamHP' { MinSelected 1 ; SelectionRule ( isNode && isSNMPSupported && (SNMPAgent == 'HP 9000/HP-UX') ); NameField 'IP Hostname', 'IP Address', 'Selection Name'; Command '${rsam:-/usr/OV/bin/rsam} \ -P /usr/sbin/sam \ -C \"/usr/bin/X11/hpterm -display %s -T \"%s\" -n SAM -e /usr/sbin/sam &\n\" \ ${OVwSelections}'; } /* SNMP agent is IBM RISC System/6000, invoke SMIT */ /* Invoke AIX 3.2 smit for nodes that are not running SNMP */ Action 'rsamIBM' { MinSelected 1 ; SelectionRule (isNode && isSNMPSupported && (SNMPAgent == 'IBM RS/6000')); NameField 'IP Hostname', 'IP Address', 'Selection Name'; Command '${rsam:-/usr/OV/bin/rsam} \ ${OVwSelections}'; } /* SNMP agent is IBM RISC System/6000 running AIX 3.1, invoke SMIT */ Action 'rsamIBM31' { MinSelected 1 ; SelectionRule ( isNode && isSNMPSupported && (SNMPAgent == 'IBM RS/6000 3.1') ); NameField 'IP Hostname', 'IP Address', 'Selection Name'; Command '${rsam:-/usr/OV/bin/rsam} \ -P /bin/smit \ -C \"PATH=/bin:/usr/bin:/etc:/usr/ucb:/usr/bin/X11:.; /usr/bin/X11/aixterm -display %s -e /bin/smit &\" \ ${OVwSelections}'; } }