-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsertData.py
More file actions
34 lines (32 loc) · 898 Bytes
/
Copy pathinsertData.py
File metadata and controls
34 lines (32 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding:utf8 -*-
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ithub.settings")
django.setup()
from hubasset.models import AssetSh, AssetNj, AssetBj
if __name__ == '__main__':
asset_sh = AssetSh.objects.create(
asset_id='4012871',
bams_id='bams-1001473739',
hostname='ecnshux1014.sh.cn.ao.ericsson.se',
ip_addr='147.128.73.34',
ilom_ip='147.128.73.34',
device_type='DL360 G6',
is_Virtual_Instance='p',
cpu_num=16,
memory=72,
usage_catalog='ClearCase',
os='Solaris 10u6',
hub_zone='INTR_BASE_PROD_Z0012',
vlan='121',
comment='',
# created_time,
dataroom='Primary',
row=1,
rack=2,
ru_no='2',
price=2372.5,
product='CLEARCASE VIEW & VOB server',
pdu='ALLUSE',
vm_host='n',
)