Hi, On Fri, Jan 31, 2003 at 10:16:55AM +0200, Kalev Nurklik wrote:
Yeah, that is correct. You can probably still use some SNMP trick on TCM to config ARC but finding exactly out the OIDs etc is probably harder than using remote console connection. As far as I know the TCM just intermediates the SNMP sets/gest to ARC somehow when You use the HARM through TCM.
Yeah, so perhaps the following will help: ( this are some lines of one of my config-scripts, if I omitted vital things, please give me a kick) To get the most important point: you communicate with the HARC via the NMC, i.e. snmpset <NMC-IP> <write-community>@<slot-of-harc * 1000> If used in a PERL-script: $WComm = "private\@15000"; # HARC in slot 15 ;-) the read/write-community of the NMC. $NetAddr = pack("C8", @SrvIP, @NetMask); that is an 8 byte OCTET-STRING with HARC-IP + netmask ( @RET) = snmpset( $HubIP, $WComm, "usrCfgNetIfName.2.105.112", 'string', "eth:1", "usrCfgNetAddress.2.105.112", 'string', $NetAddr, "usrCfgNetEncapType.2.105.112", 'int', 1, "usrCfgNetProtoType.2.105.112", 'int', 1, "usrCfgNetStatus.2.105.112", 'int', 3); the 2.105.112 means nothing more than: 2 byte for the chars "ip", the network name furthermore in CLI stated as for example: show ip network ip usrCfgNetIfName: "eth:1" is the interface-name usrCfgNetAddress: c above usrCfgNetEncapType: should be 1 for ethernet_ii usrCfgNetProtoType: 1 for ip(1) usrCfgNetStatus: enable(3), -- Set to this value to enable network All this var's should be packed into one packet. The following should be self-explanatory... ;-) @RET=snmpset($HubIP, $WComm, "usrIpNetRoutingRipV2.1", 'int', 1, "usrIpNetSendDefaultRoutePolicy.1", 'int', 0, "usrIpNetSendRoutesPolicy.1", 'int', 1, "usrIpNetSendSubnetsOnlyPolicy.1", 'int', 0, "usrIpNetAcceptDefaultRoutePolicy.1", 'int', 0, "usrIpNetSilentPolicy.1", 'int', 0, "usrIpNetSplitHorizonPolicy.1", 'int', 1, "usrIpNetPoisonReversePolicy.1", 'int', 0, "usrIpNetFlashUpdatePolicy.1", 'int', 1, "usrIpNetSimpleAuthenPolicy.1", 'int', 0); of cause above mentioned combination configures RIPv2. @RET=snmpset($HubIP, $WComm, "usrIpNetSendRipV1CompatPolicy.1", 'int', 1, "usrIpNetRcvRipV1Policy.1", 'int', 1, "usrIpNetRcvRipV2Policy.1", 'int', 1, "usrIpNetBcastAddr.1", 'int', 1); and enables it. @RET=snmpset($HubIP, $WComm, "ipRouteNextHop.0.0.0.0", 'ipaddr', "$GwIP", "ipRouteMetric1.0.0.0.0", 'int', 1, "ipRouteMask.0.0.0.0", 'ipaddr', "0.0.0.0", "ipRouteIfIndex.0.0.0.0", 'int', 3, "ipRouteType.0.0.0.0", 'int', 4); This guy establishes the default route to the "$GwIP"-address. After that one should be able to connect via telnet and the default user adm all ending up in: ---- 8-< -------------------- srv1.psmk> sh ip netWORK ip SHOW IP NETWORK ip SETTINGS: Interface: eth:1 Network Address: 10.0.0.147/26 Frame Type: ETHERNET_II Status: ENABLED Reconfigure Needed: FALSE Mask: 255.255.255.192 Station: 10.0.0.147 Broadcast Algorithm: IETF Max Reassembly Size: 8192 WAN Type: N/A Remote IP Address: 0.0.0.0 IP Routing Protocols: RIPV2 IP Routing Metric: 1 RIP Interface Export Metric: 0 IP RIP Routing Policies: SEND_ROUTES SPLIT_HORIZON FLASH_UPDATE SEND_COMPAT RIPV1_RECEIVE RIPV2_RECEIVE IP RIP Authentication Key: ------------------------ srv1.psmk> sh ip rouTING IP ROUTER SETTINGS IP Router Administrative Status: ENABLED IP Static Remote Routes: ENABLED IP Router ID: 10.0.0.147 IP Autonomous System Number 1 IP Max Table Size: 11400 IP Max Metric Entries: 512 IP RIP ENABLED IP Number RIP Interfaces: 1 IP Number RIP Neighbors: 0 IP RIP Flags: METRICS ---- 8-< -------------------- Hope this helps, Oliver. -- Oliver.Francke@mediaWays.net fon. +49-5246-80-1389 mob. +49-171-5597734 I used to have a sig, but I've stopped smoking.