|
|
Addendum to CiscoWorks Installation and Reference on SunOS, Solaris, and HP-UX
This addendum is intended for users of CiscoWorks 3.0 on SunOS who want to move to CiscoWorks 3.0 on Solaris and also want to migrate their existing SunOS CiscoWorks 3.0 to their new Solaris installation.
This addendum only explains the steps necessary to migrate your existing SunOS CiscoWorks 3.0 data to Solaris. Refer to the appropriate Solaris or CiscoWorks installation guides for instructions on installing Solaris or CiscoWorks.
The shell script on the CiscoWorks 3.0 CD can perform most of the steps described in this addendum. Each step of the migration procedure is explained below, and it is indicated if the shell-script can do the step for you.
There are four stages in migrating from SunOS CiscoWorks 3.0 to Solaris CiscoWorks 3.0:
Most of the CiscoWorks data is stored in Sybase tables, but there are also a few standard UNIX files you may wish to retain. The procedures below provide the details of stages 1 and 4 by describing how to save and restore all the CiscoWorks-created Sybase tables as well as relevant standard UNIX files.
Stages 2 and 3 are not discussed further in this addendum. If you added any user-created tables to your SunOS Sybase database (for polling data) and wish to retain that data on Solaris, follow the same steps for each user-created Sybase table as described below for the standard CiscoWorks-created Sybase tables.
To save your SunOS CiscoWorks 3.0 data, perform the following steps:
# setenv sa_password YOUR_PASSWORD
# mkdir /tmp/bcp_data
# cd /tmp/bcp_data
# setenv saved /tmp/bcp_data
bcp table_name out table_name.dat -c -t "\t" -Usa -P$sa_password
# alias bcp 'bcp \!^ out \!^.dat -c -t "\t" -Usa -P$sa_password'
# bcp polldb.nmsuper.polls # bcp polldb.nmsuper.polls_config # bcp polldb.nmsuper.tables out # bcp polldb.nmsuper.columns # bcp polldb.nmsuper.summaryinfo # bcp polldb.nmsuper.grouptemplate # bcp polldb.nmsuper.polls # bcp polldb.nmsuper.attr # bcp polldb.nmsuper.action # bcp polldb.nmsuper.start_stop # bcp polldb.nmsuper.pollers # bcp polldb.nmsuper.msglog # bcp polldb.nmsuper.filterlog # bcp polldb.nmsuper.applog # bcp polldb.nmsuper.ciscolog # bcp polldb.nmsuper.sample # bcp polldb.nmsuper.sample_error # bcp polldb.nmsuper.sample_load # bcp polldb.nmsuper.sample_traffic # bcp polldb.nmsuper.sample_mix # bcp nms.cisco_connect.cisco_connect_users # bcp nms.SAnms.applications # bcp nms.SAnms.app_bits # bcp nms.nmsuper.auto_install # bcp nms.nmsuper.sw_inventory # bcp nms.SAnms.logins # bcp nms.SAnms.groups # bcp nms.SAnms.users # bcp nms.SAnms.group_users # bcp nms.SAnms.group_domains # bcp nms.nmsuper.gcmds_domains # bcp nms.nmsuper.gcmds # bcp nms.nmsuper.domains_devices # bcp nms.nmsuper.domains # bcp nms.nmsuper.summaryinfo # bcp nms.nmsuper.DevConfigs # bcp nms.nmsuper.DevConfHist # bcp nms.nmsuper.DevConfFileLoc # bcp nms.nmsuper.interfaces # bcp nms.nmsuper.devices # bcp nms.nmsuper.crons # bcp nms.nmsuper.if_addresses # bcp nms.nmsuper.locations # bcp nms.nmsuper.admins # bcp nms.nmsuper.vendors # bcp nms.nmsuper.people # bcp nms.nmsuper.phones # bcp nms.nmsuper.contacts # bcp nms.nmsuper.admin_contacts # bcp nms.nmsuper.vendor_contacts # bcp nms.nmsuper.line_contacts # bcp nms.nmsuper.lines # bcp nms.nmsuper.networks # bcp nms.nmsuper.net_numbers # bcp nms.nmsuper.device_types # bcp nms.nmsuper.interface_types # bcp nms.nmsuper.protocol_types # bcp nms.nmsuper.line_types # bcp nms.SAnms.permissions # bcp nms.nmsuper.net_types # bcp nms.nmsuper.procinfo # bcp nms.nmsuper.SysFiles # bcp nms.dbo.SystemEvents # bcp nms.dbo.DumpDevices # bcp nms.nmsuper.pccmdset # bcp nms.nmsuper.pcdevset
bcp polldb.nmsuper.CREATED_TABLENAME
polldb.nmsuper.polls
TABLES="polldb.nmsuper.polls_config polldb.nmsuper.tables polldb.nmsuper.columns polldb.nmsuper.summaryinfo polldb.nmsuper.grouptemplate polldb.nmsuper.polls ...
TABLES="polldb.nmsuper.polls_config polldb.nmsuper.tables polldb.nmsuper.columns polldb.nmsuper.summaryinfo polldb.nmsuper.grouptemplate polldb.nmsuper.polls ... polldb.nmsuper.my_first_poll_group polldb.nmsuper.my_second_poll_group
# chmod +x copy_tables
# ./copy_tables out $sa_password $cwd
# cd $NMSROOT/lib/httpd/conf
# tar cvf $saved/cc-conf.tar *Profile.conf
# cd $NMSROOT/lib/httpd
# tar cvf $saved/cc-query.tar etc/*.dat htdocs/Cisco*/CaseQueryReply.shtml
# cd /etc
# tar cvf $saved/tacacs.tar tac*
# crontab -l $saved/cronfile
To restore your saved data on the Solaris machine, perform the following steps:
# source $NMSROOT/etc/install.cshrc
# setenv sa_password YOUR_PASSWORD
# setenv saved /tmp/bcp_data
# cd $saved
# isql -Usa -P$sa_password
# sp_dboption nms, "select into/bulkcopy", true
# go
# use nms
# go
# checkpoint
# go
# quit
# isql -Usa -P$sa_password # truncate table polldb.nmsuper.polls_config # truncate table polldb.nmsuper.tables # truncate table polldb.nmsuper.columns # truncate table polldb.nmsuper.summaryinfo # truncate table polldb.nmsuper.grouptemplate # truncate table polldb.nmsuper.attr # truncate table polldb.nmsuper.action # truncate table polldb.nmsuper.start_stop # truncate table polldb.nmsuper.pollers # truncate table polldb.nmsuper.msglog # truncate table polldb.nmsuper.filterlog # truncate table polldb.nmsuper.applog # truncate table polldb.nmsuper.ciscolog # truncate table polldb.nmsuper.sample # truncate table polldb.nmsuper.sample_error # truncate table polldb.nmsuper.sample_load # truncate table polldb.nmsuper.sample_traffic # truncate table polldb.nmsuper.sample_mix # truncate table nms.cisco_connect.cisco_connect_users # truncate table nms.SAnms.applications # truncate table nms.SAnms.app_bits # truncate table nms.nmsuper.auto_install # truncate table nms.nmsuper.sw_inventory # truncate table nms.SAnms.logins # truncate table nms.SAnms.groups # truncate table nms.SAnms.users # truncate table nms.SAnms.group_users # truncate table nms.SAnms.group_domains # truncate table nms.nmsuper.gcmds_domains # truncate table nms.nmsuper.gcmds # truncate table nms.nmsuper.domains_devices # truncate table nms.nmsuper.domains # truncate table nms.nmsuper.summaryinfo # truncate table nms.nmsuper.DevConfigs # truncate table nms.nmsuper.DevConfHist # truncate table nms.nmsuper.DevConfFileLoc # truncate table nms.nmsuper.interfaces # truncate table nms.nmsuper.devices # truncate table nms.nmsuper.crons # truncate table nms.nmsuper.if_addresses # truncate table nms.nmsuper.locations # truncate table nms.nmsuper.admins # truncate table nms.nmsuper.vendors # truncate table nms.nmsuper.people # truncate table nms.nmsuper.phones # truncate table nms.nmsuper.contacts # truncate table nms.nmsuper.admin_contacts # truncate table nms.nmsuper.vendor_contacts # truncate table nms.nmsuper.line_contacts # truncate table nms.nmsuper.lines # truncate table nms.nmsuper.networks # truncate table nms.nmsuper.net_numbers # truncate table nms.nmsuper.device_types # truncate table nms.nmsuper.interface_types # truncate table nms.nmsuper.protocol_types # truncate table nms.nmsuper.line_types # truncate table nms.SAnms.permissions # truncate table nms.nmsuper.net_types # truncate table nms.nmsuper.procinfo # truncate table nms.nmsuper.SysFiles # truncate table nms.dbo.SystemEvents # truncate table nms.dbo.DumpDevices # truncate table nms.nmsuper.pccmdset # truncate table nms.nmsuper.pcdevset # go # quit
bcp table_name in table_name.dat -c -t "\t" -Usa -P$sa_password
# alias bcp 'bcp \!^ in \!^.dat -c -t "\t" -Usa -P$sa_password'
# bcp polldb.nmsuper.polls_config # bcp polldb.nmsuper.tables # bcp polldb.nmsuper.columns # bcp polldb.nmsuper.summaryinfo # bcp polldb.nmsuper.grouptemplate # bcp polldb.nmsuper.attr # bcp polldb.nmsuper.action # bcp polldb.nmsuper.start_stop # bcp polldb.nmsuper.pollers # bcp polldb.nmsuper.msglog # bcp polldb.nmsuper.filterlog # bcp polldb.nmsuper.applog # bcp polldb.nmsuper.ciscolog # bcp polldb.nmsuper.sample # bcp polldb.nmsuper.sample_error # bcp polldb.nmsuper.sample_load # bcp polldb.nmsuper.sample_traffic # bcp polldb.nmsuper.sample_mix # bcp nms.cisco_connect.cisco_connect_users # bcp nms.SAnms.applications # bcp nms.SAnms.app_bits # bcp nms.nmsuper.auto_install # bcp nms.nmsuper.sw_inventory # bcp nms.SAnms.logins # bcp nms.SAnms.groups # bcp nms.SAnms.users # bcp nms.SAnms.group_users # bcp nms.SAnms.group_domains # bcp nms.nmsuper.gcmds_domains # bcp nms.nmsuper.gcmds # bcp nms.nmsuper.domains_devices # bcp nms.nmsuper.domains # bcp nms.nmsuper.summaryinfo # bcp nms.nmsuper.DevConfigs # bcp nms.nmsuper.DevConfHist # bcp nms.nmsuper.DevConfFileLoc # bcp nms.nmsuper.interfaces # bcp nms.nmsuper.devices # bcp nms.nmsuper.crons # bcp nms.nmsuper.if_addresses # bcp nms.nmsuper.locations # bcp nms.nmsuper.admins # bcp nms.nmsuper.vendors # bcp nms.nmsuper.people # bcp nms.nmsuper.phones # bcp nms.nmsuper.contacts # bcp nms.nmsuper.admin_contacts # bcp nms.nmsuper.vendor_contacts # bcp nms.nmsuper.line_contacts # bcp nms.nmsuper.lines # bcp nms.nmsuper.networks # bcp nms.nmsuper.net_numbers # bcp nms.nmsuper.device_types # bcp nms.nmsuper.interface_types # bcp nms.nmsuper.protocol_types # bcp nms.nmsuper.line_types # bcp nms.SAnms.permissions # bcp nms.nmsuper.net_types # bcp nms.nmsuper.procinfo # bcp nms.nmsuper.SysFiles # bcp nms.dbo.SystemEvents # bcp nms.dbo.DumpDevices # bcp nms.nmsuper.pccmdset # bcp nms.nmsuper.pcdevset
# isql -Usa -P$sa_password
# truncate table polldb.nmsuper.polls
# go
# quit
# bcp polldb.nmsuper.polls
bcp polldb.nmsuper.CREATED_TABLENAME
# chmod +x copy_tables
# ./copy_tables in $sa_password $cwd
# isql -Usa -P$sa_password
# sp_dboption nms, "select into/bulkcopy", false
# go
# quit
# cd $NMSROOT/lib/httpd/conf
# tar xvf $saved/cc-conf.tar
# cd $NMSROOT/lib/httpd
# tar xvf $saved/cc-query.tar
# cd /etc
# tar xvf $saved/tacacs.tar
# crontab $saved/cronfile
Table 1 lists the tables moved by the copy_tables command.
Table 1 Tables Moved by the Copy_Tables Command
| Database | Table Owner | Table Name |
|---|---|---|
| polldb | nmsuper | polls_config |
| polldb | nmsuper | tables |
| polldb | nmsuper | column |
| polldb | nmsuper | summaryinfo |
| polldb | nmsuper | grouptemplate |
| polldb | nmsuper | polls |
| polldb | nmsuper | attr |
| polldb | nmsuper | action |
| polldb | nmsuper | start_stop |
| polldb | nmsuper | pollers |
| polldb | nmsuper | msglog |
| polldb | nmsuper | filterlog |
| polldb | nmsuper | applog |
| polldb | nmsuper | ciscolog |
| polldb | nmsuper | sample |
| polldb | nmsuper | sample_error |
| polldb | nmsuper | sample_load |
| polldb | nmsuper | sample_traffic |
| polldb | nmsuper | sample_mix |
| nms | cisco_connect | cisco_connect_users |
| nms | SAnms | applications |
| nms | SAnms | app_bits |
| nms | nmsuper | auto_install |
| nms | nmsuper | sw_inventory |
| nms | SAnms | logins |
| nms | SAnms | groups |
| nms | SAnms | users |
| nms | SAnms | group_users |
| nms | SAnms | group_domains |
| nms | nmsuper | gcmds_domains |
| nms | nmsuper | gcmds |
| nms | nmsuper | domains_devices |
| nms | nmsuper | domains |
| nms | nmsuper | summaryinfo |
| nms | nmsuper | DevConfigs |
| nms | nmsuper | DevConfHist |
| nms | nmsuper | DevConFileLoc |
| nms | nmsuper | interfaces |
| nms | nmsuper | devices |
| nms | nmsuper | crons |
| nms | nmsuper | if_addresses |
| nms | nmsuper | locations |
| nms | nmsuper | admins |
| nms | nmsuper | vendors |
| nms | nmsuper | people |
| nms | nmsuper | phones |
| nms | nmsuper | contacts |
| nms | nmsuper | admin_contacts |
| nms | nmsuper | vendor_contacts |
| nms | nmsuper | line_contacts |
| nms | nmsuper | lines |
| nms | nmsuper | networks |
| nms | nmsuper | net_numbers |
| nms | nmsuper | device_types |
| nms | nmsuper | interface_types |
| nms | nmsuper | protocol_types |
| nms | nmsuper | line_types |
| nms | SAnms | permissions |
| nms | nmsuper | net_types |
| nms | nmsuper | procinfo |
| nms | nmsuper | SysFiles |
| nms | dbo | SystemEvents |
| nms | dbo | DumpDevices |
| nms | nmsuper | pccmdset |
| nms | nmsuper | pcdevset |
Cisco Connection Online (CCO) is Cisco Systems' primary, real-time support channel. Maintenance customers and partners can self-register on CCO to obtain additional content and services.
Available 24 hours a day, 7 days a week, CCO provides a wealth of standard and value-added services to Cisco's customers and business partners. CCO services include product information, software updates, release notes, technical tips, the Bug Navigator, configuration notes, brochures, descriptions of service offerings, and download access to public and authorized files.
CCO serves a wide variety of users through two interfaces that are updated and enhanced simultaneously---a character-based version and a multimedia version that resides on the World Wide Web (WWW). The character-based CCO (called "CCO Classic") supports Zmodem, Kermit, Xmodem, FTP, Internet e-mail, and fax download options, and is excellent for quick access to information over lower bandwidths. The WWW version of CCO provides richly formatted documents with photographs, figures, graphics, and video, as well as hyperlinks to related information.
You can access CCO in the following ways:
http://www.cisco.com.
cio.cisco.com.
For a copy of CCO's Frequently Asked Questions (FAQ), contact
ciohelp@cisco.com.
For additional information, contact
cioteam@cisco.com.
If you are a network administrator and need personal technical assistance with a Cisco product that is under warranty or covered by a maintenance contract, contact Cisco's Technical Assistance Center (TAC) at 800 553-2447, 408 526-7209, or
tac@cisco.com.
To obtain general information about Cisco Systems, Cisco products, or upgrades, contact 800 553-6387, 408 526-7208, or
csrep@cisco.com.
|
|
Copyright 1988-1996 © Cisco Systems Inc.