Environment
Situation
Resolution
- Ensure that the Memory Stick is mounted correctly,
- Ensure that the user has permissions to set the Read & Write permissions to all the files and folders in the memory stick
- FYI, the user must be able to run the following : For the files in the sysinfo/bin directory the files mcsysinfo and sysinfo are executable links. and the .mcsiwrapper is the executable they are linked to
- Suggestion : You could also suggest that a disk or a network drive which is available over the network could be mounted in each machine perform a scan and then unmounted, (a unix sys admin can do this) this could avoid the user having to plug in the memory stick from device to device and can mount drives over a remote terminal by SSH/telnet sessions.
路 Install the contents of zaaio-10.1.0-hpux-paris.tar.gz on a HP UX box locally
路 Copy the folder sysinfo along with all its contents from the installed path /opt/novell/zenworks/sysinfo into a memory stick
路 Go to the /sysinfo/config/ directory in the memory stick(root privilege is necessary)
路 Execute the command chmod 777 *.* (Permissions can be modified to give just write access to root) as we need to execute them from the memory stick
路 Modify the following files that are found in the /sysinfo/config directory in the Memory stick configvars.cfg and mcsysinfo.cfg , (The files need to be created using the contents of the files within Additional Information). In these files there are reference's to the absolute installed paths, we have to replace the absolute paths by relative paths with reference to the memory stick( namely replacing /opt/novell/zenworks/ by ../../) Save the files.
路 Go to the /sysinfo/bin directory in the Memory stick and
路 Execute the following command .
路 ./sysinfo --nw --format report --class all --msglevel all >> inventory.UIF to obtain the UIF. This will give UIF's for your need
Additional Information
# $Id: //depot/sysinfo/7.0/config/configvars.cfg.in#1 $
#
# Configuration Variables.
#
# This file contains certain variables that shell scripts source.
# The values are set by "configure".
#
# WARNING: The *order* of variables is important. This file is
# "sourced" by /bin/sh (amoung others). Be sure variables
# which refer to other variables are in proper referential order.
#
prefix="../sysinfo"
prefix_dir="../../sysinfo"
slash="/"
CC="@CC@"
OSCFLAGS="@OSCFLAGS@"
CFLAGS="@CFLAGS@"
CPPFLAGS="@CPPFLAGS@"
OSLDFLAGS="@OSLDFLAGS@"
LDFLAGS="@LDFLAGS@"
IsMagniComp="yes"
LIBS="@LIBS@"
OSNAMEMVERmf="@OSNAMEMVERmfVar@"
OSNAMEVERmf="@OSNAMEVERmfVar@"
OSNAMEmf="@OSNAMEmfVar@"
ProdVersion="7.0.1-H19"
ProdVersionFull="7.0.1 H19"
ProdVersionDist="7.0.1-H19"
VarsMF="@VarsMF@"
exec_prefix="@exec_prefix@"
bindir="@bindir@"
cfdir="../../sysinfo/config"
siddir="@siddir@"
mibsdir="@mibsdir@"
have_net_snmp="@have_net_snmp@"
have_shared_lib="yes"
net_snmp_prefix="@net_snmp_prefix@"
objdir="@objdir@"
objprefix="@objprefix@"
BuildDir="@BuildDir@"
osname="linux"
osnameReal="linux"
perl_build_prefix="/tmp/perl.sysinfo"
srcdir="@srcdir@"
topsrcdir="@top_srcdir@"
SrcDir="${topsrcdir}"
ECHO_C="@ECHO_C@"
ECHO_N="@ECHO_N@"
ECHO_T="@ECHO_T@"
SharedLdExeFlag="@SharedLdExeFlag@"
LIB_CRYPTO_DIR_OPTS="@LIB_CRYPTO_DIR_OPTS@"
InstallStripOption="@InstallStripOption@"
MacUniversalSDKdir="@MacUniversalSDKdir@"
MacUniversalBinary="@MacUniversalBinary@"
DistDir="@DistDir@"
# Copyright (c) 1992-2006 MagniComp
# This software may only be used in accordance with the license which is
# available as http://www.magnicomp.com/sysinfo/6.0/sysinfo-eu-license.shtml
#
# $Id: //depot/sysinfo/7.0/config/mcsysinfo.cfg.in#1 $
#
# MagniComp SysInfo Configuration File.
# See mcsysinforc(5) for documentation on this file format.
#
# Top level prefix
#
prefix=../../sysinfo
# Libexec directory
#
libexecdir=../../sysinfo/libexec
# Product (aka distribution) Name
#
ProdName=mcsysinfo-noui
# Our Product Version
#
ProdVersion=7.0.1-H19
# Do we have shared library support?
#
HaveSharedLib=yes
# Do we need to setenv LD_LIBRARY_PATH etc?
#
SharedLibSetEnv=yes
# Shared Library directory search path.
# This is not used on Windows, so we use the UNIX standard ":" as the
# path seperator.
#
SharedLibPath=../../sysinfo/lib/platform/${OSNAME}-${OSVERSION}-${CPUARCH}/shared:../../sysinfo/lib/platform/${OSNAME}-${OSMAJVERSION}-${CPUARCH}/shared
# Executable Path is a list of dirs to search for binary executables.
# Each path is seperated by comma (,) which allows for Windows/DOS names.
#
ExecPath=../../sysinfo/libexec/platform/${OSNAME}-${OSVERSION}-${CPUARCH},../../sysinfo/libexec/platform/${OSNAME}-${OSMAJVERSION}-${CPUARCH},../../sysinfo/libexec/platform/${OSNAME}-${CPUARCH},../../sysinfo/libexec/platform/${OSNAME}-${OSVERSION}-${APPARCH},../../sysinfo/libexec/platform/${OSNAME}-${OSMAJVERSION}-${APPARCH},../../sysinfo/libexec/platform/${OSNAME}-${APPARCH},../../sysinfo/bin
# Driver directory search path
#
DriverPath=./sysinfo/libexec/drivers
# Directory containing SNMP MIBS
#
SnmpMibsDir=../../sysinfo/lib/mibs
# The --prefix that perl was built with (not what it's installed as).
#
perl_build_prefix=/tmp/perl.sysinfo
# Base dir name of perl shared lib dir (from top of perl dir downward)
#
perl_shared_lib_dir_base=
# Perl @INC dirs
#
perl_inc_dirs=lib/5.8.5/i686-linux,lib/5.8.5,lib/site_perl/5.8.5/i686-linux,lib/site_perl/5.8.5,lib/site_perl