Child pages
  • noc collection
Skip to end of metadata
Go to start of metadata

Name

noc collection – Load and synchronize built-in FM, GIS and inventory collections

Synopsis

noc collection [options]

Description

Load, manipulate and synchronize built-in FM, GIS and inventory collections

Options:

-s

--sync

Synchronize collections

-u <collection>

--upgrade <collection>

Upgrade collection to a new model

-i <collection> <patch>

--install <collection> <patch>

Install file to collection

-r

--remove

Remove file from collection

-c

--check

Check collections

-S <collections>

--status <collections>

Show status

Examples

Sync built-in FM, GIS and inventory collections

noc@/opt/noc$ ./noc collection --sync
Syncing gis.layers
Syncing inv.vendors
Syncing inv.modelinterfaces
Syncing inv.connectiontypes
Syncing inv.connectionrules
Syncing inv.objectmodels
Syncing fm.oidaliases
Syncing fm.syntaxaliases
Syncing fm.mibaliases
Syncing fm.mibpreferences
Syncing fm.enumerations
Syncing fm.alarmseverities
Syncing fm.alarmclasses
Syncing fm.eventclasses
Syncing fm.eventclassificationrules
Upgrading fm.cloneclassificationrules
Syncing fm.cloneclassificationrules
noc@/opt/noc$ 

Install new files from directory /tmp/1 to collection  inv.objectmodels

root@/opt/noc# ./noc collection --install inv.objectmodels /tmp/1/*
Installing files
    ... installing DLink | DGS | DGS-3120-24SC
    ... saving manifest.csv
Updating manifest
Updating CollectionCache
root@/opt/noc#

Update changed files in directory inv/collections/objectmodels/DLink/DGS

root@/opt/noc# ./noc collection --install inv.objectmodels inv/collections/objectmodels/DLink/DGS/*
Installing files
    ... installing DLink | DGS | DGS-3612
    ... updating DLink | DGS | DGS-3612
    ... installing DLink | DGS | DGS-3612G
    ... updating DLink | DGS | DGS-3612G
    ... saving manifest.csv
Updating manifest
Updating CollectionCache
root@/opt/noc#
  • No labels